package cn.b.sky.modeler.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.DispatcherServlet;

/**
 * @Author: yueding
 * @Description:
 * @Date: Created in 14:09 2017/11/16
 * @Modified By:
 * Copyright(c) cai-inc.com
 */
@ComponentScan(basePackages = {
        "cn.b.sky.modeler.repository",
        "cn.b.sky.modeler.service.editor",
        "cn.b.sky.modeler.controller.**",
        "cn.b.sky.modeler.configuration",
        "cn.b.sky.modeler.util"})
@SpringBootApplication
public class FlowableModelerApplication {
    public static void main(String[] args) {
        SpringApplication.run(FlowableModelerApplication.class, args);
    }

   /* @Bean
    public ServletRegistrationBean dispatcherServletRegistration(DispatcherServlet dispatcherServlet) {
        ServletRegistrationBean registration = new ServletRegistrationBean(dispatcherServlet);
        registration.getUrlMappings().clear();
        registration.addUrlMappings("/api/*");
        registration.addUrlMappings("/app/*");
        return registration;
    }*/
}